from flask import Flask, render_template

# 创建一个Flask应用
app = Flask(__name__)


@app.route('/tem')
def func():
    # 传递上下文用result属性
    return render_template('tem.html', result={'msg': 'zydnb!'})


if __name__ == '__main__':
    app.run(debug=True)
